package com.rx.sample.service.fallback;

import com.rx.sample.model.Balance;
import com.rx.sample.service.BalanceService;
import org.springframework.stereotype.Service;

@Service
public class BalanceServiceFallback implements BalanceService {

    @Override
    public Balance getBalance(Integer id) {
        return Balance.builder().message("降级").build();
    }

}
